Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsuite improvements - make the tests repeateable without clean task #27

Closed
wants to merge 10 commits into from

Conversation

TomasHofman
Copy link

@TomasHofman TomasHofman commented Nov 26, 2024

This is bit debatable "improvement", please close the PR if it doesn't suit you.

Currently some of the tests fail when they are run repeatedly without running the clean task. I.e. running following sequence will result in test failures:

mvn clean install
mvn test

The core reason usually is that by default the provisioning is terminated early, when the server directory already exists (from the previous test execution), and so the expected provisioning failure for instance is not triggered.

I set overwrite-provisioned-server to true in affected test pom files to enforce overriding the old installation. It could also be solved by cleaning the installation dir in some @ Before method.

@TomasHofman TomasHofman requested a review from jamezp as a code owner November 26, 2024 14:03
Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seems fine to me. An alternative would be to delete the directory after the test runs.

@jfdenise jfdenise force-pushed the wf-to-eap branch 3 times, most recently from 9b26559 to 99b9414 Compare December 3, 2024 16:30
@jfdenise jfdenise closed this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants